package com.xuecheng.api.content;

import com.xuecheng.api.content.model.dto.CourseBaseDTO;
import com.xuecheng.api.content.model.qo.QueryCourseModel;
import com.xuecheng.api.content.model.vo.CourseBaseVO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * @author by 高鹏
 * @Date 2021/12/8
 * @Description
 */
@Api(value = "课程基本信息Api接口",tags = "内容-课程基本业务信息Api接口",description = "课程基本业务信息Api接口")
public interface CourseBaseApi {

    /**
     * 分页查询
     * @param params 当前页和总页码
     * @param model 条件
     * @return
     */
    @ApiOperation("分页条件查询课程基本信息")
    PageVO<CourseBaseDTO> queryCourseList(PageRequestParams params, QueryCourseModel model);

    /**
     * 添加录播课程
     * @param courseBaseVO
     * @return
     */
    @ApiOperation("课程基础信息创建")
    CourseBaseDTO creatCourseBase(CourseBaseVO courseBaseVO);

    /**
     * 根据id查询
     * @param vo
     * @return
     */
    @ApiOperation("课程基础信息修改")
    CourseBaseDTO modifyCourseBase(CourseBaseVO vo);


    /**
     * 课程基础信息修改
     * @param courseBaseId
     * @return
     */
    @ApiOperation("根据课程id查询课程数据")
    CourseBaseDTO getCourseBaseById(Long courseBaseId);


    @ApiOperation("根据Id删除课程信息")
    @ApiImplicitParam(name = "courseBaseId", value = "课程id值", required = true, paramType = "path")
    void removeCoursebase(Long courseBaseId);

    @ApiOperation(value = "提交审核")
    @ApiImplicitParam(name = "courseBaseId", value = "课程ID", required = true, dataType = "Long", paramType = "query", example = "1")
    void commitCourseBase(Long courseBaseId);

}
